<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <?php $this->load->view('admin/leftside'); ?>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
<!--         Content Header (Page header) -->
        <?php if($this->session->userdata('u_id')){ ?>
        <section class="content-header">
            <h1>
                <?php echo $title; ?>
                <small>Control panel</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-home"></i><?php echo $title; ?></a></li>
                <!--                                <li class="active">Dashboard</li>-->
            </ol>
        </section>
        <?php } ?>

        <!-- Main content -->
        <section class="content">


            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">User Table</h3>
                            <div class="box-tools">
                                <div class="input-group">
                                    <input type="text" placeholder="Search" style="width: 150px;" class="form-control input-sm pull-right" name="table_search">
                                    <div class="input-group-btn">
                                        <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                            </div>
                        </div><!-- /.box-header -->
                        <div class="box-body table-responsive no-padding">
                            <table class="table table-hover">
                                <tbody>
                                <tr>
                                    <th>#</th>
                                    <th>User</th>
                                    <th>Email</th>
                                    <th>Address</th>
                                    <th>Date Register</th>
                                    <th>Status</th>
                                    <th>Position</th>
                                    <th>Action</th>

<!--                                    <th>Reason</th>-->
                                </tr>
                                <?php $i=1; foreach($result as $key => $value){ ?>
                                <tr>
                                    <td><?php echo $i; ?></td>
                                    <td><?php echo $value['u_fullname']; ?></td>
                                    <td><?php echo $value['u_email']; ?></td>
                                    <td><?php echo $value['u_address']; ?></td>
                                    <td><?php echo date("d-m-Y",strtotime($value['u_dateregister'])); ?></td>
                                    <td><span class="label label-<?php if($value['u_status'] == 'Verified'){echo 'success'; }else{echo "danger";} ?>"><?php echo $value['u_status']; ?></span></td>
                                    <td><span class="label label-<?php if($value['u_ugroup_id'] == '1'){echo 'warning'; }else{echo "primary";} ?>"><?php if($value['u_ugroup_id'] == 1){echo "Admin";}else{echo "User";} ?></span></td>
                                    <td ><i class="fa fa-plus " style="cursor: pointer" onclick="show_add_user('<?php echo base_url(); ?>');"></i> | <i class="fa fa-edit" style="cursor: pointer"><a href="#"></a></i> | <i onclick="return EventDelete(<?php echo $value['u_id']; ?>);" class="fa fa-trash-o" style="cursor: pointer"></i></td>
<!--                                    <td>Bacon ipsum dolor sit amet salami venison chicken flank fatback doner.</td>-->
                                </tr>
                                    <?php $i++;} ?>
                                </tbody></table>
                        </div><!-- /.box-body -->
                        <div class="box-footer clearfix">
                            <ul class="pagination pagination-sm no-margin pull-right">
                                <li><a href="#">«</a></li>
                                <li><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">»</a></li>
                            </ul>
                        </div>
                    </div><!-- /.box -->
                </div>
            </div>

        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div>
<script src="<?php echo base_url(); ?>asset/js/Js_admin.js"></script>